package ysq.xyg.host.service;


import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.host.model.po.HostWatch;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.host.model.vo.HostWatchVo;

import java.util.List;

/**
 * 房产模块-小区围观service接口
 *
 * @author congcong tao
 * @date 2019-8-30 10:34:41
 */
public interface HostWatchService extends BaseService<HostWatch> {
    /**
     * 分页查询
     *
     * @param hostWatchVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-8-30 10:34:41
     */
    ReturnEntity page(HostWatchVo hostWatchVo, int pageSize, int pageNum);
    /**
     * 修改
     *
     * @param hostWatchVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-8-30 10:34:41
     */
    ReturnEntity addOrUpdate(HostWatchVo hostWatchVo, SysUser currentUser);
    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-8-30 10:34:41
     */
    ReturnEntity delete(String id, SysUser currentUser);
    /**
     * 获取集合
     *
     * @param hostWatchVo 对象
     * @return List<HostWatch> HostWatch集合
     * @author congcong tao
     * @date 2019-8-30 10:34:41
     */
    List<HostWatch> acceptList(HostWatchVo hostWatchVo);

    /**
     * 根据房id查询
     * @param itemId
     * @author congcong tao
     * @date 2019/8/30 11:43
     */
    List<HostWatchVo> selectByItemId(String itemId);

    /**
     * 根据房id查询并控制查询数量
     * @param id
     * @param size
     * @author congcong tao
     * @date 2019/8/30 17:07
     */
    List<HostWatchVo> selectByItemIdAndSize(String id, int size);
}
